package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.PrivateMessage;
import cn.wolfcode.trip.base.query.QueryObject;

import java.util.List;

public interface PrivateMessageMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PrivateMessage record);

    PrivateMessage selectByPrimaryKey(Long id);

    List<PrivateMessage> selectAll();

    int updateByPrimaryKey(PrivateMessage record);

    Integer listPrivateMessageCountByStatus(Long uid);

    void changeStatus(Long uid);

    List<PrivateMessage> selectForList(QueryObject qo);

    PrivateMessage selectOneForId(Long id);

}